package com.liujc.plugin;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

public class PluginMainActivity extends AppCompatActivity {

    public static final String IMG1_URL = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1510290280907&di=0eb93944130b63c8a0ad0a6078fdb598&imgtype=0&src=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F54fbb2fb43166d220612c57c4c2309f79152d2f5.jpg";
    public static final String IMG2_URL = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1510290258030&di=e851b9a55dca58e848010c91ccbabadc&imgtype=0&src=http%3A%2F%2Fg.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F838ba61ea8d3fd1f571a04d03a4e251f94ca5fcc.jpg";
    public static final String IMG3_URL = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1510290264866&di=b9616f5a0c5b7d73d0cceb9a32cf53d5&imgtype=0&src=http%3A%2F%2Fimg.mp.itc.cn%2Fupload%2F20161102%2F93a9cfc021ed44b28af7a143be6ba017_th.jpeg";


    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_image_browser);

        ImageView homeIcon1 = (ImageView) findViewById(R.id.iv_home_icon11);
        ImageView homeIcon2 = (ImageView) findViewById(R.id.iv_home_icon12);
        ImageView homeIcon3 = (ImageView) findViewById(R.id.iv_home_icon13);

        Glide.with(this).load(IMG1_URL).into(homeIcon1);
        Glide.with(this).load(IMG2_URL).into(homeIcon2);
        Glide.with(this).load(IMG3_URL).into(homeIcon3);
    }
}
